//
// Returns 'test6-fileutil.js'
//

var JServer = require( '../jserver' );
var fileutil = require( '../fileutil' );
var path = require( 'path' );
var server = new JServer( {workers:1} );
server.ServerResponse.allowOrigin = '*';
if ( server.start() ) return;

server.get( "/findtest6", function(req,res) {
	var files = fileutil.findFilesSync(__dirname+"/test6*.js");
	res.json( path.basename(files[0]) );
} );

server.listenHTTP( 3006 );
